<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>{$Think.lang.rpl_add_page_title} - {$Think.lang.cfg_website}</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-metro.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="favicon.ico" />
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<div class="page-content" style="background-image:none;">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div id="portlet-config" class="modal hide">
				<div class="modal-header">
					<button data-dismiss="modal" class="close" type="button"></button>
					<h3>portlet Settings</h3>
				</div>
				<div class="modal-body">
					<p>Here will be a configuration form</p>
			  </div>
			</div>
			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- BEGIN PAGE CONTAINER-->
			<div class="container-fluid">
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="__URL__/content_add" method="post" id="adcontentForm" 
                        	  class="form-horizontal form-bordered form-row-stripped">
                            <input type="hidden" name="table"           value="{$Think.get.table}"/>
                            <input type="hidden" name="content_solevar" value="{$Think.get.solevar}"/>
                            <input type="hidden" name="reply_solevar"   value="{:create_id()}"/>
                            <div class="alert alert-error hide">
                                <button class="close" data-dismiss="alert"></button>
                                {$Think.lang.cfg_form_err_allform}
                            </div>
                            <div class="alert alert-success hide">
                                <button class="close" data-dismiss="alert"></button>
                                {$Think.lang.cfg_form_ok_allform}
                            </div>
                            <div class="control-group">
                                <label class="control-label">{$Think.lang.cfg_form_reply_type}
                                <span class="required">*</span></label>
                                <div class="controls">
                                    <select name="retype" id="retype" class="span6 m-wrap">
                                   {$retype}
                                    </select>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{$Think.lang.cfg_form_wechat_reply_type}
                                <span class="required">*</span></label>
                                <div class="controls">
                                    <select name="type" id="type" class="span6 m-wrap">
                                    <option value="">{$Think.lang.cfg_form_tis_select}</option>
                                    {$type}
                                    </select>
                                </div>
                            </div>
                            <div id="reply_content">
                            </div>
                            <div id="event_content">
                            </div>
                            <div class="clear" style="padding-top:10px;">
                            	<button type="submit" class="btn green">{$Think.lang.cfg_form_ele_submit}</button>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>

				</div>
				<!-- END PAGE CONTENT-->         
		  </div>
			<!-- END PAGE CONTAINER-->
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<script src="__PUBLIC__/Js/jquery.min.js" type="text/javascript"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>     
	<script src="{$NOW_THEME_URL}/Assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<script src="{$NOW_THEME_URL}/Assets/plugins/excanvas.min.js"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/respond.min.js"></script>  
	<![endif]--> 
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
	<!-- END CORE PLUGINS -->

    <script src="{$NOW_THEME_URL}/Assets/scripts/wechat/set.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=023ea5aa58d31c2d2dc6a650bad7795b"></script> 
    <script type="text/javascript" src="http://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.js"></script> 
    <script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.js"></script>
	<!-- END PAGE LEVEL STYLES -->    
	<script type="text/javascript">
		var ABS_URL_Theme = "{$NOW_THEME_URL}/";
		//UploadPic STATES CONSTANT
		var ABS_URL = "{$Think.TMPL_URL}/";
		var REL_URL = "{$Think.REL_URL}";
		//UploadPic END CONSTANT
		
		var vMessage = {};
		
		jQuery(document).ready(function() {
			var solevar   = $('input[name=content_solevar]').val(); 
			var parameter = {};
			parameter.content_add_keywrods = '{:U("/Public/content_add_keywrods")}';
			parameter.content_add_location = '{:U("/Public/content_add_location")}';
			parameter.content_add_event    = '{:U("/Public/content_add_event")}'+'&solevar='+solevar;
			parameter.content_add_menu     = '{:U("/Public/content_add_menu")}'+'&solevar='+solevar;
		   	wechatSet.init(parameter);
		});									
	</script>
	<!-- END JAVASCRIPTS -->   
</body>
<!-- END BODY -->
</html>